package com.boil.qz.safekavass.web.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * Created by ChenYong on 2017-05-31.
 * <br>
 * 举报微信发普通红包的请求参数
 */
public class ReportWeixinSendredpackParam extends IdParam {
    /**
     * 金额
     */
    @NotNull(message = "金额不能为空")
    @Range(min = Constants.VALUE_1, max = Constants.VALUE_499, message = "金额在1至499之间")
    private Integer amount;
    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空")
    @Length(min = Constants.VALUE_1, max = Constants.VALUE_50, message = "备注的长度在1至50个字之间")
    private String remark;

    /**
     * 默认构造器。
     */
    public ReportWeixinSendredpackParam() {
        super();
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("ReportWeixinSendredpackParam{");
        sb.append("amount=").append(amount);
        sb.append(", remark='").append(remark).append('\'');
        sb.append(", id=").append(id);
        sb.append('}');
        return sb.toString();
    }
}